refactored and documented the continuous.py file slightly