Assembler: support for functions
Assembler: fixed relocations and main entry point