changed indents from tabs to 2x space.
whitespace fixes
typos fixed
fixed vararg usage for lua 5.1/5.2. Fixes #1
added tests: collected samples from documentation into a test file