Refactored text candidate detection into its own source code files
Renamed header to use C++ style header extension