Added include guards
Fixed incorrect function name and added prototype to make compiler smile