initial support for AST construction - Java target used as an example
const correctness in ST and runtime "libs"

also some methods were renamed