Refactored
Added insert and script
Added for and each
Minor changes
Added test attribute fot tag attribute