Refactored integer types. Got lambda functions working again (mostly). General cleanup and refactoring.