Removed erroneous code
Fixed syntax issues