! more of them missing functions ... again where did that file go :'(

Signed-off-by: spuds <spuds@spudsdesign.com>
! valiable name changes for consistency
! formatting and cleanup