Added Application, Menu, MenuItem and some exception stuffs.