PEP 8 fixing in tasks, new implementation of instr_task compatible with plugin system. Docstring enhancement.
Moved profile opening/saving in its own module.