There should be an easily obtainable doc in any form or some comprehensive examples. Currently there is no better way than reading the source code.