Refactoring.
Added package doc.
Added golive and slave packages.