Fixed bufsize type.
Removed orphan file.
Merge pull request #144 from troky/master

Bugfix and cleanup.