added asninfo function and commented some code