Fixed bug in arrays where the do_finalize function didn't check for do_finalize flag and ran regardless of this, causing functions to fail.
Allow comments inside struct definition
Add documentation for pointers.