Added more functionality

Changed create_array to create_state and made it make a string instead
of an array. Added a print function to print the string.