Adding extra protection to hex format inputs
Adding extra test cases and tweeting compile.sh to compile all java files