Adding clean function, cleaning on end, version bump