removed a lot of comments, made the software work with relative directories