Fixed up a segfault and added better logging
Moved output from build to root directory