Fixed a bug with record deletion.
Renamed several camelCase named variables.