Fixed bug preventing multiple sub-entites
Fixing bug preventing multiple links
Updated required php to 5.4 and added basic documentation