Added configuration for GPU layout, comments, cleanup

- added configuration options for gpu layout algorithm
- added comments to Gpu module classes
- code cleanp