Added final documents and fixed bugs
final stuff