refactoring
Various improvements

more tests
constructor compilation
variable reference compilation