gui changes for #12
low mem mode as decorator and 'with' block. fixes #15