Made entities doubly linked
Merge pull request #26 from Smilex/ent_prev

Made entities doubly linked