Missing newline at the end of the file
Pointer asterisk swap
Fixed segfault