CommonJS + other updates
1.Updated to commonJS format
2.support for private documents on iOS
3.Android support
4.Add Permission