added code formatting script (using astyle) & formatted all code