- removed mixed indentation
- modified status check to be LSB conform
- changed structure of status check