fixed

Fixed multiple bases and various other enhancements.
Merge pull request #3 from ferbeb/multibase

fixed multiple bases