Changed tabs with spaces and style change to make it more readable
Added initial tests and travis