A few obvious fixes
Corrected GET and get
A bit of refactoring