added comments, getting input