Added middleclass api.
bugfixes, reorged directories
Added -a to list