move to package structure. closes #5
enable generic output format