fixed some broken paths and tidied up indentation