Added input validation, docstrings to ale.py.