Genericising get declarations process
Adding tests for null and empty css passed in
DRYing it up with selector formatting
Adding comments and changing access modifiers to make sense