Code cleanups:
 - select now realSelect
 - options now realOptions
 - main function returned immediately
 - General code tightening