release 0.4.0 ready for beta testing and use