General clean up

Fix boolean logic around genetic transpose, clean up all C++ comments
in C source, add io_scan logic, clean up apescript_variable_codes