Code format changes: ; char in line ends, variables renamed, blank lines between logical blocks