Commented code, cleaned up a little.