Cleaned up web app code a little. some formatting.