Tests added; getRect updated to be more efficient
add comments per review.
Merge pull request #4 from makyo/tests

Tests added; getRect updated to be more efficient