Bug corrections
Bug corrections
Added theory description (incomplete)