refactor: move readline to private method
remove unnecessary .to_s
improve local variable name
cleanup Rakefile, simplify test requires