Text this: Development and implementation of a finite element program for static electromagnetic field problems