Implemented the task system

Implemented a much cleaner system for easier reading and writing of each
file.