added log example to README
fixed bug in cat function
fixed int_or_next bugs