allowing newline as ending of tnt line

not only ; as before... and some code cleaning + gitignore