added warning for missing definitions;
added error for cyclic dependencies;
added tests for warnings and errors;
added trailing newlines to files
Merge pull request #8 from jonsquared/feature/cyclicDependencies

added warning for missing definitions;