Added error manager for throwing errors and collecting warnings;
Warning for pattern redefinition and unused variables;
Error for parameter with same name