added regression tests and usage help