Most errors highglighted by TS were due to a lack of type definitions and were ignored by settings types to `any`. Some minor bugs were resolved where the fix was obvious. TODO marks left where `any` needs to be later removed or bugfix verified