New packages, interfaces and organization of files. Bugs fixed.