Can I add my proprietary code to KnowledgeTree Open Source code?

No, not unless you agree to redistribute the source code of your proprietary software under the GPL.