introduced the newline feature
splitted pastek_core in two file main to avoid duplicating code (pastek_core used by pastek.js)