fix minor compiler warnings
adding debug statements to fix unit test
move swagger api generation to profile