Removed swfobject
Added comments, made a more efficient clear function