Simple main function which tries to parse stdin