Minor update (0.9c)

Updated return variables for most functions to be more consistent
Updated a lot of comments to explain better how to validate the function