Added a status API method.
Finished crash tests. fixes #5