changing to a more standard dir structure. Also catching exceptions in script. This is possibly messed up due to newline getting screwed up by netbeans.