got previous unit tests working again and added test for file loading. also added a few constructors and formatted some files