change some datatypes from char* to string
cleanup
created new class intervals to separate logic from gui