Finished program

Still need to do some polishing. Should work from command line with
parameters. Only changing the number of features