Remove global variables
Use generic get and set methods
Initialize at beginning of session and frame init
Use more local variables
Annotate code
Bump version