added the states array
added the target data output methods
added JSON data output for targets