added at, fixed m_data, added array init