Add optparsing
Fix cdLines execution order
Add basic storage framework