Fixed file redirection, tested writing, commented buildJob