Cleaned up, commented, wrote README.