Added function to get next available window number, and tests
Removed limit on number of windows, WIP