cleaned up comments etc.,submitting this code