Working :)

* all resolutions are working
* improved delay function
* powers of 2 replaced by bitshifting