Added open_file context manager
Run doctests for io module
read_U -> read_2q_gate
Used open_file in write_indexed_matrix
Added some doctests to IO module
Added test to print_2q_gate
Added test for print_matrix routine
Small bugfixes in IO module
Added nose tests for IO module