refactoring of FGFDM parser replace old helpers with lib functions from <cstring> remove typecast that kills 'const' add some comments and clarify variable names