Add CInput class to handle input, fix README.md