Began fixing some TODOs. Mainly IllegalArgument checks, also fixed spelling mistake.