Cleaning before building

Added a cleaning function which completely cleans up the output folder before it build up a new one.