Remove unused globals
Just return instead of return false as nothing is checking the output
Actually use the $size variable that's instantiated
Merge pull request #3 from jdevalk/master

Various small fixes