Implemented check command. Closes #72.