added logging of params passed

working on #4 and #7