Implemented array editor and fixed some bugs.