Fixed compile error
Fixed constructor error
Forced compiling via Java 6
Refactored the error checking code