Changed int -> size_t many places.
Merge pull request #94 from joakim-hove/int-bug

Changed int -> size_t many places.