APD-7: refactor code

  - use 2 spaces instead of 4 for indentation
  - remove console.log