Added more tests and functionality

Added ability to read type and default value