better cleaning of the array, more checks and exceptions
better CSS3 design