added logging functions
readme updated