update docs
fix user input
refactoring