Fix for getting the right parameter
With this patch the detail action always assumes that the last parameter is the value for getting the detail record.

When using the index and detail action from the same page we should use parameter(1)
When using the index and detail action from different pages we should use parameter(0)
Used fork coding standards
Remove variable only used for return
Second attempt for styling code like https://github.com/forkcms/coding-standards
Line wrap fix
Formatter placed curly braces back on same line, fixed
Merge pull request #48 from bart-lysander/patch-1

Patch for detail action taking wrong parameter