better K&R style implementation

put braces on newlines for class/function declarations