Files in "src" now use global use strict and are properly concatenated (with a single 'use strict').
Additionally did major code clean-ups (using @typedef, extracting out functions etc.)