Tweaked readme and added JavaDoc