Functionality for new hostlist implemented.
Added a bit documentation for functions...