variable definition cleanup, indentation fixes, bugfix for spectrum analyzer reference not working due to strict mode addition