Add -titlebuttons and -no-resize options, fix code style.

Signed-off-by: Manuel Bachmann <manuel.bachmann@open.eurogiciel.org>