Add include and test directories
Add newline to log messages, fix potential gc bugs