added 'type' parameter in methods; console.log, warn or error can be chosen
docs improvements