added stdout option to logger and command line opts to braind