Relax some package restrictions

... and add some interface for loading from String.