Implemented layer ungluing
Fix for removing all layers when everything is removed
Fixes for layer removal
Set up playground with error case