refactored getBoundaries() to do it the way Dr. Jumadinova does it

(I feel kinda dumb now)
Merge pull request #9 from hawkw/hawk's_dev_branch

refactored getBoundaries() to do it the way Dr. Jumadinova does it