Added comments and documentation

More than what, but some why too!