got it to look at directories
fixed bugs in compiling code