master: added search stock by code feature. plus minor fixes.