fixed all known bugs. started with documentation