tokens: Despite his reputation for corruption , he was instrumental in marketing military equipment , including various famous weapons such as the Maxim gun ( one of the first fully automatic machine guns ) and the first working submarine .