Added the basis of a logging system and will add thorough logging in the next commit.