Remove unnecessary stdin argument; edit comments
Edited comments and log messages