Added granular, autoloading masks. Masks no longer require editing library files.
Some bugfixes, made path detection smarter