code cleanup and better logging
merging code cleanup
updated README