Fixed some errors and added a Example