Streamlined MaterialPackageManager.

Bettered newline handling.