Add a real logging system using cpp-lib. Add helper for direction. Moving all directions into a lib file.