Changes tabs to spaces

Removes throws Exception

Adds sonar properties