Moved profile xquery files to subdirectory
Split library into submodules and refactored