bracelet experiment, cleanup
still not working
minor improvements (bounds etc.)
minor improvements (bounds etc.)