Improved RME checks
Added a new .cpp file for testing
Merge pull request #64 from maxim123/master

Small improvement to RME check and a new .cpp file