Added comments to Input and Think