Moved stdout helper and added CLI parser