correct processing of nested lists
parse number using double
move Detector to Detector.Type
test function to parseyaml