Code review changes

Some minor changes after doing some code review of the seadroid code.