Moving C component/unit testing into subdir, moving examples into subdir, documenting
Adding error doc, wrote a while ago but apparently forgot to add