last changes in 2013

almost everything works
BUT:
- fix swap for coordinates (smth wrong in functions draw and show)
- fix search
- add list of categories to draw
- add swap for categories