implement the mobclean feature with parameter -m
remove some trailing whitespaces and tabs
add more comments and improve the layout