[lib] minor cleanup and output fix, [doc] update to readme