pruning old code and adding documentation to the README