updated mag to 0.9.x
added simple example
mistype fix