Finished elementlib manual formatting.
Added code for automatically detecting necessary dofs and creating them accordingly. Needs more work. (Used in remeshing code, not yet ready)