Restructured configuration internally, and names used.

Also added option to change cache size. Fixes #156