Fixed code quality and remade the CI scripts