Restricted options for logging level. Added option for logging filename and made stdout the default.