added some docstrings, restricted exceptions