document peripherals properly (JSON only for now, printouter coming soon)