Finished flash handling and added Appendix