Added extract functionality. Fixed bug in testing array format. Was a null terminator issue