added matplotlib numpy example
commented on the code a bit