Modified evaluation function to consider magnitude of changes.
Various refactors to simplify future changes.
Fixed file permissions and removed svn metadata.