Adds optional decimal parameter to progress

This pull request adds an optional parameter to the progress function, enabling the option to set a customized number of decimals for the percentage number.