fixes and additions

-fixed wrong formated saving of the gap list
- added new commands