put code into code section, separated test from core, removed latex generation from root incubator