removed locks
added analysis function
added stemming functionality
added stemming functionality
cleaned up comments