Fixed dependency bugs and added code to allow ignoring of files