updated functions and new ones

struct was deleted,added new addSubUnit function,new getName() and getBudget().