fixed a couple of compile errors, added code to create input and output folders in oncreate