Selects added
Fixed a typo
Added the pretty print function