added input arguments, fixed frame count percentage complete