Prevent division by zero.
Added comments and updated README.