Re-formatted some enum definitions and started work on adding a thread-safe log system (just header files for the moment).