More logging added and code formating, now its time to put it to use.