Move commands if the adminpanel is not requested
count method more flexible
Minor correction in moveFile's comment
Commenting useless debug lines