Added error message for invalid JSON files instead of throwing an exception
Splitt the install and update functionality