Better formatting of the persistence.xml
MainMenu Stub added
Application Closing and Events added