Update rakefile, add more loggin to module and client