Modify library structure, and implement services setup.
Fix rubocop warnings.