added a bit of documentation; removed useless var