Revised logger code and added usage instructions to documentation file