fixed pct calculations
removed debug output
added -i to mv and cp