Support for 10 sections

Changed the code to be able to support any number of sections.
Extended number of sections available for use in the webapp to 10.