Fix some bugs

Name conflict in clusters because Stations is both in api and clusters.
Update api function name in generate JSON script