Formatted all code (wasnt very smart to omit public)