Added id functionality to user input. Added comments