Added docs and comments

Also removed setLogname as although it is available as variable it cannot be changed.