Exception Handled, Logger implemented, Java Documentation written,
Constants added, functionality corrected.

Signed-off-by: Sanjay Madnani <http://sanjaymadnani.wordpress.com/>