fixes and clarifies main function, content parsing