Make methods private

Because these methods are internal use only.
Remove trailing white spaces