added material library to material class
added document with theory notes
some experimental code for FDM and tolerance management