Fixed syntax
Removed test alerts
added confirm box
Added comments