Made the program more modular

comments for the Menu class has been added
fixed bugs
can now play .gif files
improved overall readibility