Added frontend properties, example of error handling, code reformat