distinction between header and data (incomplete)

still not complete, bugs in "isInt" function