Comments, memory management

Boilerplate stuff, generally, but useful for larger projects.