Wrote add task function.
Added method to write models to task files.
Added helper function to create tasklines.