started implementation of core functions, including conditionals, fixed attachment of blocks to function calls