Minor code cleanup (mostly just R# warnings)
Added optional configuration parameter customprefix. This fixes #2