added support for shared lists, lots of style changes.