Improvements

Cleaned up main code
Made it easy to play with the spca parameters