Added WebMethod getarray()

Added comments for clarity