Additional coding guidelines

Update coding guidelines after discussion with Andy:
- Code order
- Notation of multiple attachments