Further improved returning status.

1. Better memory checks.
2. Core calls now return int status over bools.
Removed dependancy on stdbool.

1. C89 compatability for everyone (but you should still upgrade!).