cleaned goto's, made them alittle safer, by freeing only what i needed
to free. also made sizeof's use the variable instead of the type for
flexibility
decided to try using structs without typedefs, if it does not work out
then i will use the "_s" suffix
renamed structs, removed typedefs, trying something new to me
added a strndup clone
sys_endian_e is now "enum sys_endian", reordered some functions
alphabecticaly, removed unneeded string manipulation functions
correctly free img{vc,sa} struct if open fails
Updated README.md
did updates and cleaning of api calling