some edits to maxlik tutorial