Simplified code by using JSON instead in getHome

This creates release 0.5.0.5