Refactoring & fixed bug

1. Refactoring
2. Fixed bug in Network.DivideNetwork(appering in high number of
subnets)
3. Adding and deleting hosts
4. Small GUI changes