added function registration in Calculator; code refactoring; css applied
added cache settings and namespace for it; cache model changed (array of objects)