added sorting function for animations arrays
some code cleaning
fixed bug
defined and implemented equals operator
fixed fromHex function on color