Makes sure the ROOT_PATH is an absolute one.

Adds in a little start-up logging.
Adds lots of comments, fixes whitespace.