SW changes, prettify
Small bug in grestore found and fixed
Added some debug messages
Added some signals to sensitivity list, added swap example. Works good, except random memory corruption...