Tidying up unused arguments and includes.
Fix buffer overflow bug where wrptr == rdptr when full.
Merge pull request #52 from pthedinger/slave

Fixing buffer overflow bug