added byte[] read(int length) to API, added log messages to traces calls to other functions during HTTP resource fetching