restructure of packages and added documentation