renamed MapResult module to FunctionApplication and other related minor clenaups