completed AGAL2 opcodes and texture flags
added read() method (close #15)