start of coding standards and merging with existing theme options, renaming functions

Signed-off-by: Thad Allender <thadallender@gmail.com>