fixed some bugs in program and updated to reflect local status after git wouldn't work.