Added handling of public and stock keywords
Added test for @identifier function definition