Try to fix url regexp. Add url code only if need. Move bb code to separate file. Fix caps with smile abuse.