Added comments, small syntax changes and updated readme