move to lib class
cleanup
open and save methods
Use lib for open and save
Merge pull request #1 from dereuromark/develop

Develop