added constructor parameter for setting path to serialization file of font metrics
also updated to currently used code formatting