Increased size of str[] for reading from files. c89 compliance changes.
Various style changes. Switch case improved. Found a bug, not fixed yet.