Finalized error handelling. Implemented actual iconifier script.