Finished protype of rec40 parser