Separated most of the functions to individual files. Will still need a bit more work to complete the task.