added a size command and some other changes