optimize code structure

1. put together method frame code to method.c
2. add share count limit in simulator
3. move codes about stock parameter to stockutil.c
4. some adjustment in rise method