added error message if leap_main missing, fixed bugs, changed colours