Code Generalized

Expanded some of the code and parameterized some aspects (e.g., length
of breaks/phases in the task)