Added the design and function pages
Added many functions and error handling
Added many functions and error handling