Fixed a few bugs in edi, z and pt and added some attributes and methods