fixed a pointer parameter, added usage information and comments