several fixes

     * fixed md5 sum for directories
     * fixed not showing anything when recursive mode is on and single
       file is given
     * pep8 improvements