added new files; fixed some errors and finished part of writeup