Fixed all back end compilation errors, proceeding to further refactor classes