Updated remove_subinterface function
Updated internal and external network removed plus other minor corrections