added distutils setup, MIT license, and plotting functions.

code is complete and works on sample data.