- Fix bug where the function would return empty high bins when framesPerBin was a low value (< ~10) - Improve readability - Add error test cases