commented code, fixed a couple bugs, and renamed some vars
version bump