Added documentation and fixed syntax error.

Added documentation and a closing bracket for the getID() function.