Further documentation & bugfixes. Added attributes.