More code from BFG.
Formatted sources.

Signed-off-by: revelator <ralphengels@gmail.com>