fixed title overflow
remove unused parameters

in various function calls
add comments