add lastchech to Check object
Merge pull request #109 from obazoud/lastcheck

add lastChech to Check object
Clear some warnings
#111 - Only set username and password if string is not empty