Update DigoleHW.js

Trimmed down file size, added new functions, fixed bugs, tested functionality.