Fixed small bugs.
Started restoring minimal lexicographic representative functionality.