updated mag to 0.2.0
added simple example
mistype fix