changed time object, added beats per minute, implemented tones,
refactoring, test cases