improved diferenciation between function declarations and definitions
improved unit test support while loop support function declaration