Some scratch code for bdvis package, mainly testing or fialed code