Initial write of documentation and renamed some parameters