Added Boost Log based error messaging and cleaned up namespaces/usings.