Added useful functions library, continued on entit
Added quad parameter to entity init