Added docstrings to a few functions.
Added tests for onScreen(), added docstrings for basic functions.