Construction of a versatile negative ion source and related developments