Added functions and comments.
Functions setCurrent and updateProgress are merged into setProgress.
Functions setBarHeight and setBarColor are added for display control.