Remove unused functions, javadoc added and widget relative positioning
(partially)