implemented 'clean' command
parametrize clean command, small fixes