Added mode CLI parameter and "clean" task