## Description Cleaning up the program, implementing null-checks where needed, and organising the code.
Description
Cleaning up the program, implementing null-checks where needed, and organising the code.