Improved security, stability and documentation