Added string parameter to getLastLog() and getLog()
Added unit verification in getLogs()
Added unit verification in getLastLog()