Added some test cases for Compiler compile and compileCode methods.
Update compiler to forbid file input with directory output and vice-versa.
Update and add tests. Fix #6.
Merge pull request #24 from tuvistavie/test

Add tests