Improved the layout and fixed a few bugs. Now wrapping up. Need to improve the back-end algorithm.