Rearranged code

Put the call to setRange in the init() rather than construtor() function, since that would seem to be far more sensible again