Expanded functionality

Added boolean flag for optional logging to stdout