Updated throttle code

Added comments, removed some old code