changed initMainAR back to compund statement
added genCall in factor to generate Function call from functionIdentifier return value