Added list packages function and removed atool

* core.sh: list_packages function
* core.sh: sustituted atool with extract function