renaming file in preparation for C conversion
Initial conversion to plain C