Moved some #defines to 'main.h' and added more comments.