Commented code, updated README.