Improved documentation in the main activity and added license text to all java sources.