Somewhat more generalize logging
updated readme