added command rename, adapted code to new impacket r840+ SMBConnection fixes, minor bugs fixed