Added support for common options and truncation.
Merge pull request #3 from kernan/test

Added support for common options and truncation.