removed deprecated javascript function
fixed some doc blocks; removed unused namespaces
fixed todo