Updated .gitignore
Added library sorting
Added safeApply
Added service for library loading