Convert size values to correct unit. Refs #issue6.
Add default value to parameter. Refs issue #5.
Fix some warnings.