Added Activity. Fixed several bugs. The Application is working as it should