Added functionality to Real class

Added important functionality to Real class
Added primitive support of trigonometric functions
Res-structured code packages