Adding comments and documentation.