added cleaning based on tasks and split tasks out into their own files for organizational purposes; fixes #5