Bejon

I've implemented a version of logging, and reformatted the comments, and created an exception to throw.. Basically all the simple changes we talked about last week. Not sure if this the way we had in mind for logging, not sure if that merged branch doesn't need to be done first.