Cleanup logs
Updated Cmake to use c++11
Cleaned logs
 Multiple change:
         - Changed the isLocked method to return more explicit status codes
         - Changed FAILURE to ErrorCode::Failure and SUCCESS to ErrorCode::Success