coding almost entirely done. code needs proper documentation