Add Math adapter, new examples and several changes