Added file output logging

Also included help command