Fixed getSize function.
Merge pull request #7 from gilesa/master

Fixed getSize function.