added persistence

also Layer Selection and various minor piccolo tweeks