Code formatted, javadoc added.
Fixed bug in applicationDetails.jsp