fixed rule violations and started documentation