Moved data checking to a new unit, and added a formatting check routine of the source files