fixed issues in department controller and code clean up
fixed git ignore