removed the 'modules' from the output path. fixed some bugs and restructured prelude.