[Issue #364][Updating] applied code conventions

- replaced a loop via the map function
- adjusted indentation of documentation