added the get input string macro. also added comments