input type fix
some comments and cleanup
fix checker and guesser