Adding docstrings and # -*- coding: utf-8 -*-