implemented last bits of SGSC (compiler), adjusted interface