Change the directory structure

The directory structure of the code has been changed. Now the code has
been made into a package, with the content of the previous sole module
written into the init file.