Add reset button
Switch port checking to regex
Add tests & refactor