Merge pull request #19 from tivnet/master

Fixed two bugs causing strict warnings; Thanks a lot for the request.
add helper function to easy to use log in console, fixed #16
enhance for use debug in console with objects