Small changes

Uncommented some functions, and made some comments for clarity.