Detection Codes for Dark Matter experiments