Updated documentation, addition of appendix A,B and further elaboration on design