cleaned code, fixed rounding issue. MelodyGui is done