Full refactoring for using ASYDO as a package