Refactored dose as an importable module

Removed parameters dictionary and custom_functions()
Updated all functions to cater external parameters
Updated simulate() to accept external parameters