updated docs; fixed some problems with main.py