added some java code and junit tests and also a gitignore