Fixed titles not having spaces removed.
Fixed CWD issues
Filter newlines from comments