Updated cpp usage
Remember the correct filename for __FILE__
Added __BASE_FILE__ test + stdoutcheck flag