fixed some documentation and removed parameter under div
fixed an NPE and moved the contextual menu left when it is too far to the right