Moved a lot of things to config file, added Stage object for assembling the stream