Adapted code to comply with latest header specs

- add comment line to header
- add legacy sample ID
- fix wrong info in some of the fields
- minor code cleanup