first commit
add ring_size js
progress on detector
working version