Added cin and tidied code
Added required files