Corrected some errors

also adjusted indentation of nested elements to improve legibility