minor bug fixes

reshape modified;
first edge bug fixed