function update

- added downdate function
- corrected some functions (div by 0 cases)
- corrected latex
- added initial dictionary
- added reading function for dictionary (does not seem to work
correctly)