Cleaned code a little. Wrote comments.

Put a marker for where to continue debugging the Python from.