move tests to tests subdir
Revert "move tests to tests subdir"

This reverts commit e57415e10f0015042f78a9948b0238bf14564a75.
add usage message and beginning of library support
adding subdir support