Added ls and resolvePublic methods
Refactored configuration and other stuff..