Fixed makefile
Added newline to the end of KnowledgeBasedAgent.cpp
Enabled multiple substitutions in a term