Implemented Saving of options

Saving of packages is brocken though.