Added comments regarding checking if a directory exists.
Better logging.
Merge branch 'Buffer' into develop