updated documentation in the header
renamed some stuff